from sqlalchemy import Column, Integer, String, DateTime, func
from models.base import Base


class MedicalTerm(Base):
    __tablename__ = "medical_terms"

    id = Column(Integer, primary_key=True, index=True)
    term_chinese = Column(String(255), nullable=False)
    term_lisu = Column(String(255), nullable=False)
    term_vietnamese = Column(String(255), nullable=True)
    term_laowu = Column(String(255), nullable=True)
    term_miandian = Column(String(255), nullable=True)
    created_at = Column(DateTime, default=func.now())
    updated_at = Column(DateTime, default=func.now(), onupdate=func.now())








